package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dataobject.NbOrderStrategy;
import com.bbzn.device.client.dao.strategy.NbOrderStrategyMapper;
import com.bbzn.device.client.service.NbOrderStrategyService;
@Service
public class NbOrderStrategyServiceImpl implements NbOrderStrategyService{

    @Resource
    private NbOrderStrategyMapper nbOrderStrategyMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return nbOrderStrategyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(NbOrderStrategy record) {
        return nbOrderStrategyMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(NbOrderStrategy record) {
        return nbOrderStrategyMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(NbOrderStrategy record) {
        return nbOrderStrategyMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(NbOrderStrategy record) {
        return nbOrderStrategyMapper.insertSelective(record);
    }

    @Override
    public NbOrderStrategy selectByPrimaryKey(Integer id) {
        return nbOrderStrategyMapper.selectByPrimaryKey(id);
    }

    @Override
    public NbOrderStrategy findByChannelCode(Integer channelCode) {
        return nbOrderStrategyMapper.findByChannelCode(channelCode);
    }

    @Override
    public int updateByPrimaryKeySelective(NbOrderStrategy record) {
        return nbOrderStrategyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(NbOrderStrategy record) {
        return nbOrderStrategyMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<NbOrderStrategy> findByAll(NbOrderStrategy nbOrderStrategy) {
        return nbOrderStrategyMapper.findByAll(nbOrderStrategy);
    }

    @Override
    public int updateBatch(List<NbOrderStrategy> list) {
        return nbOrderStrategyMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<NbOrderStrategy> list) {
        return nbOrderStrategyMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<NbOrderStrategy> list) {
        return nbOrderStrategyMapper.batchInsert(list);
    }

}
